package com.zzedu.stu.req;

import jakarta.validation.constraints.NotNull;

public class SubmitExerciseBook {

    /**
     * 题目ID
     */
    @NotNull(message = "题目ID不能为空")
    private Long id;
    /**
     * 题目内容[原始内容]
     */
    @NotNull(message = "题目内容不能为空")
    private String subjectContent;
    /**
     * 题目展示内容[逻辑处理后的内容]
     */
    @NotNull(message = "题目展示内容不能为空")
    private String content;

    /**
     * 答案
     * 选择题:{"answer":"选项ID"}
     * <p>
     * 拼词题: {"answer":Dog}
     * <p>
     * 连线题: {"answer":[left1-right1,left2-right2]}
     * <p>
     * 配音题:{"answer":[{"examId":"题目文件ID","uploadId":"上传文件ID"}]}
     * <p>
     * 看视频、听音拼:{"answer":[{"examId":"文件ID"}....]}
     * <p>
     * 填空题:{"answer":[{"text":"答案"}.....]}
     */
    private String answer;

    /**
     * 答案结果 ->true 正确 或者 false 错误
     */
    private Boolean answerResult;

    /**
     * 视频时长(S)
     */
    private Long videoTime;

    /**
     * 页面停留时长(S)
     */
    private Long remainTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSubjectContent() {
        return subjectContent;
    }

    public void setSubjectContent(String subjectContent) {
        this.subjectContent = subjectContent;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Boolean getAnswerResult() {
        return answerResult;
    }

    public void setAnswerResult(Boolean answerResult) {
        this.answerResult = answerResult;
    }

    public Long getVideoTime() {
        return videoTime;
    }

    public void setVideoTime(Long videoTime) {
        this.videoTime = videoTime;
    }

    public Long getRemainTime() {
        return remainTime;
    }

    public void setRemainTime(Long remainTime) {
        this.remainTime = remainTime;
    }
}
